home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 6 / CU Amiga Magazine's Super CD-ROM 06 (1996)(EMAP Images)(GB)(Track 1 of 4)[!][issue 1997-01].iso / cucd / magazine / executive_v2.00 / data / developers.lzx / SysInfo / examples / uptime / Makefile < prev    next >
Makefile  |  2002-08-16  |  837b  |  41 lines

  1. #
  2. # GCC makefile for SysInfo.library/uptime
  3. #
  4. # This file is public domain.
  5. #
  6. # Author: Petri Nordlund <petrin@megabaud.fi>
  7. #
  8. # $Id: MF.compile 1.5 1996/09/05 23:20:00 petrin Exp petrin $
  9. #
  10.  
  11. # To compile uptime with multiuser.library support, you must have
  12. # installed the Multiuser package, specifically the include-files.
  13. # You'll also need GCC:lib/libmultiuser.a which is a small stub-library,
  14. # see GCC:geninline/ for information on how to build it.
  15.  
  16. # Uncomment this to include multiuser-support
  17. #MULTIUSER = -DUSE_MULTIUSER -lmultiuser
  18.  
  19. CFLAGS = -O
  20.  
  21.  
  22. SHELL = USR:BIN/sh
  23.  
  24. # Source files
  25. SRCS   = uptime.c
  26.  
  27. # Object files
  28. OBJS   = $(SRCS:.c=.o)
  29.  
  30.  
  31. all : uptime
  32.  
  33. uptime : uptime.o
  34.     gcc $(CFLAGS) -o uptime $^ -lamiga -lauto -lsysinfo $(MULTIUSER)
  35.  
  36. uptime.o : uptime.c defs.h
  37.     gcc $(CFLAGS) -c uptime.c
  38.  
  39. clean:
  40.     -delete uptime uptime.o
  41.